(function (angular) {
    'use strict';

    angular.module('ytong.controllers').controller('managerDashCtrl', managerDashCtrl);

    function managerDashCtrl(ordersManager, $scope){

        $scope.salesChartNumbers = ordersManager.getDashboardOrders().sale_numbers;

        $scope.salesChartFiscal = {
            xkey: 'month',
            ykeys: ['sales'],
            labels: ['Sales in cash'],
            data: [
                { month: 'January', sales: 20 },
                { month: 'February', sales: 35 },
                { month: 'March', sales: 31 }
            ]
        };
    };


}(angular));